{extend name="$BASE_POPUP_FORM" /}
{block name="body"}

<div class="box-content">

    <div class="control-row col-2">
        <div class="control-group">
            <label class="control-label">真实姓名</label>
            <div class="controls">
                <input type="text" id="real_name" name="real_name" placeholder="请输入真实姓名" class="form-control"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">未认证会员</label>
            <div class="controls">
                <input id="id" name="id" data-ui="combosearch"
                       data-options="{valueField:'id',textField:'username',showList:true,matchFields:['username'],data:user_data,searchWin:openSearchWin}"
                       class="form-control"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">身份证号码</label>
            <div class="controls">
                <input type="text" name="card_no" class="form-control" placeholder="请输入身份证号码"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                身份证正面照
            </label>
            <div class="controls">
                <div id="js_upload_wrp">
                    <input type="hidden" id="id_face" name="id_face" value="" class="" />
                    {:hook('picResource',array('name'=>'id_face','limit_num'=> '1','checktype'=>1,'folder'=>'auth','tips'=>'建议尺寸：800x600像素。仅支持.jpg .png格式长方形照片。','callback'=>'uploadIdFace'))}
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                身份证反面照
            </label>
            <div class="controls">
                <div>
                    <input type="hidden" id="id_back" name="id_back" value="" class="" />
                    {:hook('picResource',array('name'=>'id_back','limit_num'=> '1','checktype'=>1,'folder'=>'auth','tips'=>'建议尺寸：800x600像素。仅支持.jpg .png格式长方形照片。','callback'=>'uploadIdBack'))}
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                手持身份证照
            </label>
            <div class="controls">
                <div>
                    <input type="hidden" id="id_stand" name="id_stand" value="" class="" />
                    {:hook('picResource',array('name'=>'id_stand','limit_num'=> '1','checktype'=>1,'folder'=>'auth','tips'=>'建议尺寸：800x600像素。仅支持.jpg .png格式长方形照片。','callback'=>'uploadIdStand'))}
                </div>
            </div>
        </div>
    </div>


</div>

{/block}

{block name="script"}
<script type="text/javascript">
  
    var user_data ={$user_list};
    function openSearchWin(){
        var url = getURL('member/select_auth_user','','member');
        openBarWinParent('选择用户', 500, 600, url, function (data) {
            $("#id").setValue(data);
        }, ['选定', '取消']);
    }
    /**
     * 点击图片删除
     * */
    $('#js_upload_wrp').on("click", ".js_delete", function (e) {
        var _this = $(this);
        _this.parents(".js_edit_pic_wrp").remove();
        setPicValue()
    });
    /**
     * 添加图片
     */
    function uploadIdFace(data) {
        $("#id_face").val(data);
        setPicValue("id_face",data);
    }
    function uploadIdBack(data) {
        $("#id_back").val(data);
        setPicValue("id_back",data);
    }
    function uploadIdStand(data) {
        $("#id_stand").val(data);
        setPicValue("id_stand",data);
    }
    function onLoadDataSuccess(data) {
        if (typeof (onLoadSuccess) !== "undefined")
            onLoadSuccess();
    }
</script>
{/block}


